package com.epsi.mightymaps.hdl;

import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;

public class EnableEditTextOnCheckedChangeAction implements
		OnCheckedChangeListener {

	private final EditText editText;

	public EnableEditTextOnCheckedChangeAction(EditText editText) {
		super();
		this.editText = editText;
	}

	public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
		editText.setEnabled(isChecked);
	}

}
